<?php

use fastphp\facade\Router;

//初始化路由
Router::addRoute('','Index','index');
Router::addRoute('/','Index','index');
Router::addRoute('/util/captcha/generate','Captcha','generate');
Router::addRoute('/util/upload/image','Upload','image');

//用户登录
Router::addRoute('/admin/index','AdminIndex','index');
Router::addRoute('/admin/welcome','AdminIndex','welcome');
Router::addRoute('/admin/','AdminIndex','index');
Router::addRoute('/admin','AdminIndex','index');
Router::addRoute('/admin/user/login','AdminUser','login');
Router::addRoute('/admin/user/register','AdminUser','register');

Router::addRoute('/admin/menus/base','AdminMenu','baseIndex');
Router::addRoute('/admin/menus/base/add','AdminMenu','baseAdd');
Router::addRoute('/admin/menus/base/update','AdminMenu','baseUpdate');
Router::addRoute('/admin/menus/base/delete','AdminMenu','baseDelete');